package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Result;
import com.itheima.pojo.Goods;




public interface GoodsService extends IService<Goods> {


    //查询所有
    Result findAll();


    //添加
    Result add(Goods good);

    //查询分页
    Result findPage(Integer page, Integer size);




    //删除
    Result delete(Integer id);

    //通过id查询
    Result findById(Integer id);

    //更新
    Result update(Integer id,Goods goods);
}
